Automated teller machine.
A customer makes a request for a certain amount of cash, and your responsibility is to determine if they should be allowed to withdraw that amount.
if the amount requested < account balance
then
withdraw the amount requested
otherwise
withdraw nothing and notify the customer
Comparison
Example (Step 2)
Problem solving sequence:
1.Algorithm
2.Pseudo-code
3.C code
Now that we have pseudo-code, writing the C++ code is as simple as "translating" your pseudo-code into C++.